<?php $this->_extends('_layouts/bocib_layout'); ?>

<?php $this->_block('content');?>
<div id="content">
    <h2>图片新闻管理</h2>
	<p>当前新闻id：<b><?=$pictureNewsId;?></b> , 显示文字为：<b>"<?=$pictureNewsText;?>"</b></p>
	<p>对应新闻标题为:<b><?=News::find('news_id = ?', $pictureNewsId)->query()->title;?></b></p>
	<p>对应新闻内容为:<b><?=strip_tags(News::find('news_id = ?', $pictureNewsId)->query()->body);?></b></p>

	<form method="post" action="<?=url('bohome/editpicturenews');?>" enctype="multipart/form-data">
		<div>
			<label for="home_pic_news_id">更改链接新闻id</label>
			<input type="text" name="home_pic_news_id" id="home_pic_news_id" value="<?=$pictureNewsId;?>" />
			<label><a href="<?=url('bonewsnotice/listnews');?>" style="text-decoration:underline;">搜索特定新闻的id >></a></label><br />
			<label for="home_pic_news_text">更改显示文字&nbsp;&nbsp;</label>
			<input type="text" size="60" name="home_pic_news_text" id="home_pic_news_text" value="<?=$pictureNewsText;?>" /><br />
			<label for="picture">更改图片</label>
			<input type="file" name="picture" id="picture" /><br />
			<input type="submit" value="提交修改" />
		</div>
	</form>
	
	<img src="misc/home-index.jpg" alt="" style="display:block;margin:0 auto;" />

</div>
<?php $this->_endblock('content');?>